﻿using System.IO;

namespace EditoneLib.Streams
{
    public abstract class ReadonlyStream : Stream
    {
        public override bool CanRead
        {
            get { return true; }
        }

        public override bool CanSeek
        {
            get { return true; }
        }

        public override bool CanWrite
        {
            get { return false; }
        }

        public override void Flush()
        {
            // Silent NOP
        }

        public override void SetLength(long value)
        {
            // Silent NOP
        }

        public override void Write(byte[] buffer, int offset, int count)
        {
            // Silent NOP
        }
    }
}